package com.imooc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.imooc.mapper.SysParamsMapper;
import com.imooc.pojo.SysParams;
import com.imooc.service.SysParamsService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统参数配置表，本表仅有一条记录 服务实现类
 * </p>
 *
 * @author liansen
 * @since 2023-05-15
 */
@Service
public class SysParamsServiceImpl extends ServiceImpl<SysParamsMapper, SysParams> implements SysParamsService {

    @Override
    public void modifyMaxResumeRefreshCounts(Integer maxCounts, Integer version) {
        SysParams sysParams = new SysParams();
        sysParams.setMaxResumeRefreshCounts(maxCounts);
        sysParams.setId(1001);
        baseMapper.updateById(sysParams);
    }
}
